//ARC drawing  Claas



#ifndef ARC_H
#define ARC_H



#include "MyDisplay.h"
#include "Polyline.h"
#include "Matrix.h"
#include <fstream>
#include <math.h>

using namespace std;

class Arc:public Polyline{



    // bezier curve fuction
    // its recurcieve 
     bool draw(double xb,double yb,double xc,double yc,double xd,double yd, int n = 8 );
     
     bool plot(const double x,const double y);
     int initialPoint;
   public:
   
     
    //Matrix *points;   
   
    
    Arc();
    Arc(const char *fileName,const MyDisplay &another);
    Arc(const MyDisplay &another);
    Arc(const Matrix &R);
    
    ~Arc();
    
    //draw Polyline
     bool draw();
     
     bool draw(const Matrix &T);
     
    // draw Polyline from file
     bool draw(const char *fileName);
     
     
         
    
     
        
 };
 
 #endif
 
 
 
 
